<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改商城商品评价信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-evaluation-edit" th:object="${jiajiaMallProductEvaluation}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单表id：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">店铺id：</label>
                <div class="col-sm-8">
                    <input name="shopId" th:field="*{shopId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单表产品id：</label>
                <div class="col-sm-8">
                    <input name="productId" th:field="*{productId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">产品评论信息：</label>
                <div class="col-sm-8">
                    <textarea name="productEvaluation" class="form-control">[[*{productEvaluation}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">产品评论等级：</label>
                <div class="col-sm-8">
                    <input name="productEvaluationLevel" th:field="*{productEvaluationLevel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">产品评论图片：</label>
                <div class="col-sm-8">
                    <input name="productCommentOssIds" th:field="*{productCommentOssIds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物流评价：</label>
                <div class="col-sm-8">
                    <textarea name="logisticsEvaluation" class="form-control">[[*{logisticsEvaluation}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物流评价等级：</label>
                <div class="col-sm-8">
                    <input name="logisticsEvaluationLevel" th:field="*{logisticsEvaluationLevel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物流评价图片：</label>
                <div class="col-sm-8">
                    <input name="logisticsEvaluationOssIds" th:field="*{logisticsEvaluationOssIds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">服务评价：</label>
                <div class="col-sm-8">
                    <textarea name="serviceEvaluation" class="form-control">[[*{serviceEvaluation}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">服务评价等级：</label>
                <div class="col-sm-8">
                    <input name="serviceEvaluationLevel" th:field="*{serviceEvaluationLevel}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">服务评价图片：</label>
                <div class="col-sm-8">
                    <input name="serviceEvaluationOssIds" th:field="*{serviceEvaluationOssIds}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否加精：</label>
                <div class="col-sm-8">
                    <input name="refinement" th:field="*{refinement}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否删除：</label>
                <div class="col-sm-8">
                    <input name="deleted" th:field="*{deleted}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mall/evaluation";
        $("#form-evaluation-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-evaluation-edit').serialize());
            }
        }
    </script>
</body>
</html>